package org.ypx.center.service;


import org.ypx.db.entity.User;
import org.ypx.shared.common.Result;

import java.util.List;
import java.util.Set;

/**
 * Created by 听闻に on 2017/3/17.
 */

public interface IUserService extends BaseService<User> {
    Result<User> loadUserByUsernameAndPassword(User user);

    void changePassword(User entity);//修改密码

    User findByLoginName(String loginName);// 根据用户名查找用户

    Set<String> findRoles(String loginName);// 根据用户名查找其角色

    Set<String> findRight(String loginName); //根据用户名查找其权限

    Result<List<User>> register(User entity);

    Result<List<User>> selectAll();

    void batchDelete(Long[] selectedIds);
}
